import request from '@/utils/request'

export function listBillReceipts(query) {
  return request({
    url: '/system/houseLease/billReceipts/list',
    method: 'get',
    params: query
  })
}

export function getBillReceipt(receiptId) {
  return request({
    url: `/system/houseLease/billReceipts/${receiptId}`,
    method: 'get'
  })
}

export function reviewBillReceipt(receiptId, data) {
  return request({
    url: `/system/houseLease/billReceipts/${receiptId}/review`,
    method: 'put',
    data
  })
}

export function deleteBillReceipts(receiptIds) {
  return request({
    url: `/system/houseLease/billReceipts/${receiptIds}`,
    method: 'delete'
  })
}
